package com.xf.spring.annotation.controller;

import com.xf.spring.annotation.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created by xiefei on 2015/12/29.
 */
@Controller
public class UserController {

    private UserService userService;

    @Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void excuete() {
        System.out.println("UserController excuete .... ");
        userService.add();
    }
}
